<html>
<head>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript">
function totalAmount()
{
  var amount = $('#quenty').val();
  perCal = parseFloat(iceCreamPrice)* parseFloat(quenty);
  $('#amount').val(perCal);
}
 
</script>
</head>
<body>	
  <table align="left" border="2"  id="tableNo" clsss="waiterdiv" cellpadding="4" cellspacing="0" >
  <tr>
    <th colspan="7"><font size=5 color="red"> Table : {$tableId}&nbsp&nbsp{$tablePart} &nbsp &nbsp &nbsp Waiter : {$waiterName}</font></th>
  </tr>
{if $recordFound == 1}
  <tr>
      <th>&nbsp;</th>
      <th>Item</th>
      <th>Rate</th>
      <th>Quantity</th>
      <th>Weight</th>
      <th>Amount</th>
      <th>Time</th>
  </tr>
      {section name=iSec loop=$orderArray}
      <tr>
      	<td class="table2" align="center">
      		<a href="deleteOrder.php?ordereditemsId={$orderArray[iSec].ordereditemsId}&waiterId={$waiterId}&tableId={$tableId}&tablePart={$tablePart}" 
      		 onclick="return confirm('are u sure to delete this ??')"><img src="./images/deleteIcon.png" height="20px" width="20px">
      		 </a>
        </td>
        <td class="table2" align="center">{$orderArray[iSec].itemName}</td>
        <td class="table2" align="right">{$orderArray[iSec].itemPrice}</td>
        <td align="right">
          {$orderArray[iSec].quantity}
        </td>
        <td align="center">{if $orderArray[iSec].weight < 1000}{if {$orderArray[iSec].weight} == 0}---{else}{$orderArray[iSec].weight}Gm{/if}{else}1Kg{/if}</td>
        <td align="right">{$orderArray[iSec].amount}</td>
        <td class="table2" align="left">{$orderArray[iSec].orderTime|date_format:"%H:%M"}</td>
      </tr>
      {/section}
      {section name=lasttr loop=$joinQueryResult}
        <tr>
          <td>Total</td>
          <td colspan="2">&nbsp;</td>
          <td align="right">{$joinQueryResult[lasttr].totalItem}</td>
          <td align="right">&nbsp;</td>
          <td align="right">{$joinQueryResult[lasttr].totalamount}</td>
          <td>&nbsp;</td>
        </tr>
      {/section}
{else}
  <tr>
  	<th colspan="7">Record Not Found For Current Table</th>
  </tr>
{/if}
</table>
</body>
</html>